package main

import "fmt"

func main() {
	var a, b *int
	fmt.Printf("a = %v  b = %v \n", a, b)

	var c int
	var d bool
	var str string
	fmt.Printf(" c = %v  d = %v  str = %v \n", c, d, str)

	var (
		e    int
		f    bool
		str2 string
	)
	fmt.Printf(" e = %v  f = %v  str2 = %v \n", e, f, str2)

	// 声明变量并赋值 var identifier [type] = value
	var g int = 15
	var h = 1
	var i bool = false
	var str3 string = "Go says hello to the world!"
	fmt.Printf(" g = %v  h = %v  i = %v  str3 = %v \n", g, h, i, str3)

	// 以简短的形式声明赋值变量
	t := "adad"
	q, w, r := 5, 7, "abc"
	fmt.Printf(" t = %v  q = %v  w = %v  r = %v \n", t, q, w, r)

}
